import http from './interface'

// 首页数据
export const index = (data) => {
    return http.request({
        url: 'wechat/index/small',
        method: 'GET', 
        data,
		// handle:true
    })
}
// 购物车数据
export const getcartList = (data) => {
    return http.request({
        url: 'wechat/shoppingorder/getShoppingCartByUserId',
        method: 'GET',
        data
    })
}
// 购物车
export const updatecartGoods = (data) => {
    return http.request({
        url: 'wechat/shoppingorder/updatecartGoods',
        method: 'GET',
        data
    })
}
// 商品列表
export const goodsList = (data) => {
    return http.request({
        url: 'wechat/goods/type/list',
        method: 'GET',
        data
    })
}
export const goodsListDetail = (data) => {
    return http.request({
        url: 'wechat/goods/list',
        method: 'GET',
        data
    })
}

// 默认全部导出  import api from '@/common/vmeitime-http/'
export default {
	index,
	getcartList,
	updatecartGoods,
	goodsList,
	goodsListDetail
}